package com.repeat.member.mq.produc;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;

//签到
@Component
public class UserPointsProduct {
     @Autowired
     private RabbitTemplate rabbitTemplate;

     public void SendPointsMsg(String exchange, String routingKey, Map<String,Object> message){
         rabbitTemplate.convertAndSend(exchange,routingKey,message);
     }
}
